const buildParms = (str) => {
  const argv = process.argv;
  const index = argv.findIndex((item) => item.match(str));
  return argv[index + 1];
};
module.exports = {
  plugins: {
    autoprefixer: {
      overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 120', 'ff > 31', 'ie >= 8', 'last 10 versions'],
      grid: true
    },
    'postcss-pxtorem': {
      rootValue: buildParms('remUnit'),
      propList: ['*', '!border']
    }
  }
};
